-
Notifications
You must be signed in to change notification settings - Fork 2
Improvement/s3 utils 191 #337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development/1.16
Are you sure you want to change the base?
Conversation
900271a
to
02d89bc
Compare
@@ -28,7 +28,7 @@ | |||
"dependencies": { | |||
"@senx/warp10": "^2.0.3", | |||
"JSONStream": "^1.3.5", | |||
"arsenal": "git+https://github.com/scality/arsenal#8.2.8", | |||
"arsenal": "git+https://github.com/scality/arsenal#22a5462d7d9bdec0d21a0e9fb484594af35c1cee", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please note that this will be switched to the arsenal adequate version once the current in review PR with a fix is merged: scality/Arsenal#2371
254ba0b
to
ba16cc2
Compare
02d89bc
to
3d693cb
Compare
4fbf388
to
6ca91b6
Compare
This commit actually implements the _getIsTransient and _pensieveLocationIsTransient methods in the CountWorker.js previously implemented on arsenal and only used by the CountWorker.js. Issue: S3UTILS-191
afb8abd
to
1c533be
Compare
Hello benzekrimaha,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
|
mongoMock.getObjectMDStats.mockImplementationOnce((_a, _b, _c, _d, cb) => cb(null, { value: 42 })); | ||
w.countItems(bucketInfo, (err, results) => { | ||
expect(err).toBeNull(); | ||
expect(results).toEqual({ value: 42 }); | ||
done(); | ||
}); | ||
}); | ||
|
||
test('should use real getIsTransient and not crash', done => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should have at least 2 scenarios, depending on this.client.isLocationTransient
(since there are multiple code path).
the point is not just to see that countItems
is calling getIsTransient
, but really to execute the code in getIsTransient
to ensure it will not fail in production... (it may be done though other tests, calling the function directly!)
(alternatively, since we use a wrapper of MongoClient in here: if you add the function there they can be tested in mongoclient tests, and you don't need to change the countWorker tests)
Issue: S3UTILS-191